MPDeleteSemaphore

Removes a semaphore.

OSStatus MPDeleteSemaphore (MPSemaphoreID semaphore);
semaphore
A value of type MPSemaphoreID that specifies the ID of the semaphore you want to remove.

function result
A result code. See Result Codes for a list of possible values.
DISCUSSION
Calling this function unblocks all tasks waiting on the semaphore and the tasks' respective MPWaitOnSemaphore calls will return with the result code kMPDeletedErr .

VERSION NOTES
Introduced with Multiprocessing Services 1.0.

SEE ALSO
The function MPCreateSemaphore .


© 1999 Apple Computer, Inc. – (Last Updated 17 Nov 99)